This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Implement the /models endpoint for the VLLM provider#188
Merged
jhrozek merged 1 commit intostacklok:mainfrom Dec 4, 2024
Merged
Implement the /models endpoint for the VLLM provider#188jhrozek merged 1 commit intostacklok:mainfrom
jhrozek merged 1 commit intostacklok:mainfrom
Conversation
Member
There was a problem hiding this comment.
I think this is fine. We can also query directly the base_url and it should respond
curl -SsX GET "https://inference.codegate.ai/v1/models" \
-H "Authorization: Bearer $token"
{"object":"list","data":[{"id":"Qwen/Qwen2.5-Coder-14B-Instruct","object":"model","created":1733303915,"owned_by":"vllm","root":"Qwen/Qwen2.5-Coder-14B-Instruct","parent":null,"max_model_len":32768,"permission":[{"id":"modelperm-0aa1923ad501464fbc2f3ee91f953ed3","object":"model_permission","created":1733303915,"allow_create_engine":false,"allow_sampling":true,"allow_logprobs":true,"allow_search_indices":false,"allow_view":true,"allow_fine_tuning":false,"organization":"*","group":null,"is_blocking":false}]}]}
Contributor
Author
There was a problem hiding this comment.
I like your idea more, I will test it out
aponcedeleonch
approved these changes
Dec 4, 2024
For some reason, continue in JetBrains needs this otherwise loading the plugin fails with: ``` Error: HTTP 404 Not Found from http://127.0.0.1:8000/vllm/models This may mean that you forgot to add '/v1' to the end of your 'apiBase' in config.json. at customFetch (/snapshot/continue/binary/out/index.js:471442:17) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async withExponentialBackoff (/snapshot/continue/binary/out/index.js:471175:22) ---> continue restarts here [info] Starting Continue core... [2024-12-04T08:52:45] [info] Starting Continue core... ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For some reason, continue in JetBrains needs this otherwise loading the
plugin fails with: